import java.util.Arrays;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-12-02
 * Time: 1:02
 */

class MyArray<T> {
    public T[] array = (T[])new Object[10];     //这里实例化（T）类型数组（通过强制类型转换）
    public T getPos(int pos) {
        return this.array[pos];
    }
    public void setVal(int pos,T val) {
        this.array[pos] = val;
    }
    public T[] getArray() {
        return array;
    }
}

public class Test {


    public static void main(String[] args) {
        int[] arrays = new int[]{1,2,3,4,5,6};
        int[] ret = Arrays.copyOfRange(arrays,4,6);
        System.out.println(Arrays.toString(ret));
    }

    public static void main3(String[] args) {
        boolean[] arrays = new boolean[10];
        System.out.println(Arrays.toString(arrays));
    }

    public static void main2(String[] args) {
        Solution solution = new Solution();
        Scanner scanner = new Scanner(System.in);
        int[] arrays = new int[3];
        int i = 0;
        while (i<3) {
            arrays[i] = Integer.parseInt(scanner.next());
            i++;
        }
        int ret = solution.missingNumber(arrays);
        System.out.println(ret);
    }
    public static void main1(String[] args) {
        MyArray<Integer> myArray1 = new MyArray<>();
        Integer[] strings = myArray1.getArray();
    }
}
